package de.mmis.core.base.abstracttree.serializer.internal;

import java.util.Map;

import de.mmis.core.base.abstracttree.LeafNode;
import de.mmis.core.base.abstracttree.Tree;
import de.mmis.core.base.abstracttree.serializer.Serializer;

/**
 * Serializer class for serializing boolean values to Trees
 * 
 * @author Christian Koch
 */
class BooleanSerializer implements Serializer<Boolean> {

	@Override
	public Tree serialize(Boolean object, boolean explicit,
			Map<Object, String> refmap, ClassLoader classLoader) {
		return new LeafNode(object.toString());
	}
}
